package com.chinaunicom.aop.test;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author liry
 * @version 1.0
 * @date Created on 2021/12/14 15:44
 * Description:
 */
public class AspectMain {

    public static void main(String[] args) {
        ApplicationContext applicationContext = new AnnotationConfigApplicationContext(AspectMain.class);

        TestBean testBean = (TestBean) applicationContext.getBean("testBean");
        testBean.test();
    }
}
